package com.zzty.training.dao;

import com.zzty.training.entity.SelfExam;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SelfExamDao {
    @Select("select * from selfExam")
    List<SelfExam> getAllSelfExam();
    @Insert("insert into selfExam (questionId,classId,date) values (#{questionId},#{classId},#{date})")
    Integer addSelfExam(SelfExam selfExam);
}
